package cn.wolfcode.cmis.service.Impl;

import cn.wolfcode.cmis.dao.IUserDAO;
import cn.wolfcode.cmis.dao.lmpl.UserDAOImpl;
import cn.wolfcode.cmis.domain.User;
import cn.wolfcode.cmis.service.IUserService;

public class UserServiceImpl implements IUserService {
    IUserDAO userDAO = new UserDAOImpl();
    @Override
    public User checkUser(User user) {
        User user1 = userDAO.checkUser(user);
        if (user1 == null) {
            throw new RuntimeException("亲,账号或密码错误哦");
        }
        return user1;


    }



}
